import { Component } from '@angular/core';

@Component({
  selector: 'app-root',
  template: `
    <button routerLink="/">home</button>
    <button routerLink="/user">user</button>
    <button routerLink="/order">order</button>
    <button (click)="refresh()">refresh</button>
    <button (click)="test()">test</button>
    <router-outlet></router-outlet>
  `,
  styles: [],
})
export class AppComponent {
  refresh() {
    console.log(window.location);
    // window.location.href = window.location.href + '/index.html';
  }

  test() {
    console.log(window.location);
  }
}
